home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 121 (1990-02-15)(Ossowski, Stefan)(DE)(PD).zip / Taifun 121 (1990-02-15)(Ossowski, Stefan)(DE)(PD).adf / DiskSpeed / DiskSpeed.doc < prev    next >
Text File  |  1989-11-08  |  6KB  |  124 lines

  1.                           DiskSpeed v1.0
  2.                                 by
  3.                            Michael Sinz
  4.  
  5.              Copyright (c) 1989 by MKSoft Development
  6.  
  7.  
  8. Yes, this is yet another disk speed testing program, but with a few
  9. differences.  It was designed to give the most accurate results of the
  10. true disk performance in the system.  For this reason many of
  11. DiskSpeed's results may look either lower or higher than current disk
  12. performance tests.
  13.  
  14. This program was thrown together in a few hours because I needed more
  15. accurate and consistant results for disk performance as seen from the
  16. application's standpoint.  This program has now served its purpose and
  17. I am now giving it to the rest of the Amiga world to play with as long
  18. as all of the files remain together in unmodified form.  (That is, the
  19. files DiskSpeed, DiskSpeed.info, DiskSpeed.c, DiskSpeed.doc, and
  20. MakeFile)
  21.  
  22. ------------------------------------------------------------------------
  23.  
  24.                             User's Guide
  25.  
  26. DiskSpeed is very easy to operate.  Just start the program by either
  27. clicking on its icon or typing its name in from the CLI.  DiskSpeed
  28. will open another window with the "Drive:" string gadget active. Enter
  29. the drive name and select "Test" from the menu and DiskSpeed will go
  30. and test that device.  The results will be displayed as they are
  31. generated.
  32.  
  33. After the device has been tested, the results may be saved to the
  34. DiskSpeed.Results file in the current directory or printed on the
  35. printer.  When the results are saved in DiskSpeed.Results, they are
  36. appended to the end of that file in order to make it possible to create
  37. a single file containing the results of all of your devices.
  38.  
  39. The Menus have shortcuts for all of the options.
  40.  
  41. ------------------------------------------------------------------------
  42.  
  43.                       How Does DiskSpeed Work?
  44.  
  45. DiskSpeed is rather simple.  It uses the Amiga's Timer.device to get
  46. and calculate the time differences between the start and end of each
  47. test section.  This timer is locked to the VBlank frequency and thus is
  48. rather stable and accurate.  (Resolution is ~0.02 seconds so the
  49. accuracy is +/- ~0.04 seconds.  This should be rather good as most
  50. operations take well over 2 seconds...)
  51.  
  52. The tests work as follows:
  53.  
  54. DiskSpeed will first create a temparary directory on the selected
  55. device.  Note that the device will have to be write enabled and will
  56. need around 600 free blocks.  (Depends on the filing system)  All tests
  57. are done in this directory and all files and this directory are removed
  58. when the test is completed.  It is for this reason that some parts of
  59. the tests can not be stoped as there is a large amount of cleanup after
  60. them.
  61.  
  62.  
  63. File Create Test:    ------------------------------------------------
  64.  
  65. In this test, the program generates 256 unique file names.  As each of
  66. the names are generated, the program Open()s the file as MODE_NEWFILE
  67. and the Close()s it.  This is to time the overhead in creating a file.
  68. All of the files created are 0-bytes in length as no data is writen to
  69. these files.  These same files will be used for the Directory Scan and
  70. File Delete tests.
  71.  
  72. Directory Scan Test:    ------------------------------------------------
  73.  
  74. In this test, the directory of files created in the File Create test is
  75. scanned twice to see how quickly the system can walk directories. Thus,
  76. the timing is based on 512 directory ExNext()s.  Note that results on
  77. some very fast devices (such as RAM) could have more error as they can
  78. scan over 900 files/second.  However, most FFS and OFS devices peak out
  79. in the range of 250 files/second and thus are less prone to timing
  80. granularity.
  81.  
  82. File Delete Test:    ------------------------------------------------
  83.  
  84. This test times the deletion of the files created in the File Create
  85. test.  This shows the overhead in the deletion of a file from the
  86. filing system/device.  After this point, the program once again checks
  87. for the close gadget as it would be safe to exit here.
  88.  
  89. Seek And Read Test:    ------------------------------------------------
  90.  
  91. For this test, a 256K-byte file was created.  The program seeks to the
  92. start of the file and reads 64 bytes; then it seeks to the end of the
  93. file - 128 bytes and then reads 64 bytes; then it seeks to the middle
  94. of the file and reads 64 bytes.  It uses each of the three seeking
  95. methods (OFFSET_BEGINNING, OFFSET_END, OFFSET_CURRENT) to do this. This
  96. activity is repeated 150 times, for a total of 450 seek/reads. The
  97. timings from this test will show both disk seek performance and
  98. filesystem performance in the calculation of seek locations and actual
  99. block values.
  100.  
  101. Raw Read Test:        ------------------------------------------------
  102.  
  103. For this test, a 256K-byte file was created.  The program seeks to the
  104. start of the file and reads it in n-byte increments.  (In the current
  105. version of DiskSpeed, this is 512, 4096, and 32768 byte chunks.) The
  106. complete file is read 12 times to give a more complete view of actual
  107. read speeds.  This test will mainly show the raw data transfer rate of
  108. the machine plus the overhead of the operating system calls and device
  109. driver calls.  If the disk was very fragmented, it would also show some
  110. signs of how the seek time is causing performance to drop due to the
  111. fragmentation.
  112.  
  113. Raw Write Test:        ------------------------------------------------
  114.  
  115. For this test, a 256K-byte file was created.  The program seeks to the
  116. start of the file and writes it in n-byte increments.  (In the current
  117. version of DiskSpeed, this is 512, 4096, and 32768 byte chunks.) The
  118. complete file is written 6 times to give a more complete view of actual
  119. write speeds.  This test will mainly show the raw data transfer rate of
  120. the machine plus the overhead of the operating system calls and device
  121. driver calls.  If the disk was very fragmented, it would also show some
  122. signs of how the seek time is causing performance to drop due to the
  123. fragmentation.
  124.